/**
 * Created by yoyoyk on 2017/6/28.
 */

export default function fileFormatTest(reg,name){
    if(!reg || !name){ return; }
    const D = Array.from(reg),
        N = name.toLowerCase();
    for(let i in D){
        const I = D[i].toLowerCase();
        if(N.lastIndexOf(I) !== -1){
            return true
        }
    }
    return false;
}